<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">小程序</label>
            <div class="layui-input-block">
                <input type="hidden" name="is_miniapp" value="0" id="is_miniapp">
                <input type="checkbox" lay-skin="switch" lay-text="是|否" lay-filter="is_miniapp" {if 0 == "1"}checked{/if}>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required">
                    <option value=''></option>
                    {foreach $getTypeList as $k=>$v}
                    <option value='{$k}' >{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">关键字</label>
            <div class="layui-input-block">
                <input type="text" name="keyword" class="layui-input" lay-verify="required" placeholder="请输入关键字" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input"  placeholder="请输入标题" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">网址</label>
            <div class="layui-input-block">
                <input type="text" name="url" class="layui-input"  placeholder="请输入网址" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="image" class="layui-input layui-col-xs6"   placeholder="请上传图片" value="">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="image" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_image" data-upload-select="image" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">资源id</label>
            <div class="layui-input-block">
                <input type="text" name="media_id" class="layui-input"  placeholder="请输入资源id" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">资源</label>
            <div class="layui-input-block">
                <input type="text" name="media" class="layui-input"  placeholder="请输入资源" value="">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">文本</label>
            <div class="layui-input-block">
                <textarea name="content" rows="20" class="layui-textarea editor" 文本 placeholder="请输入文本"></textarea>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>